package com.jinzecloud.reportapproval.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jinzecloud.reportapproval.bean.Report;
import com.jinzecloud.reportapproval.dto.Param;
import com.jinzecloud.reportapproval.utils.PageUtils;
import com.jinzecloud.reportapproval.utils.R;
import com.jinzecloud.reportapproval.vo.ReportExportVo;
import com.jinzecloud.reportapproval.vo.ReportVo;
import com.jinzecloud.reportapproval.vo.ReportVos;
import com.jinzecloud.reportapproval.vo.ReporteUpdateCheckVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * 检验报告
 *
 * @author æ­å°
 * @email 1971240051@qq.com
 * @date 2024-09-03 12:10:44
 */
public interface ReportService extends IService<Report> {

    PageUtils queryPage(Param param);

    R saveReport(Report report);

    void updateByIdReportVo(ReportVo reportVo);

    void removeByIdsReportVo(List<Integer> list);

    String fileDownload(String id) throws IllegalAccessException;

    R updateApprovalOpinion(ReporteUpdateCheckVo reporteUpdateCheckVo);

    PageUtils queryPageCheckList(Param param);

    ReportVos getByIdReportVo(Integer id);

    R fileUplod(String id, MultipartFile file) throws IOException;

    ReportExportVo getByIdReportExportVo(Integer id);

    String getReportFilePath(String id) throws IllegalAccessException;

    String viewPdf(Integer id);

    String viewWord(Integer id);
}

